@import "../../themes/ionic.globals";

// iOS Popover
// --------------------------------------------------

$popover-ios-width:                     200px !default;
$popover-ios-min-width:                 0 !default;
$popover-ios-min-height:                0 !default;
$popover-ios-max-height:                90% !default;

$popover-ios-border-radius:             10px !default;
$popover-ios-text-color:                $text-ios-color !default;

$popover-ios-background:                $background-ios-color !default;
$popover-ios-arrow-background:          $popover-ios-background !default;


.popover-ios .popover-content {
  width: $popover-ios-width;
  min-width: $popover-ios-min-width;
  min-height: $popover-ios-min-height;
  max-height: $popover-ios-max-height;

  border-radius: $popover-ios-border-radius;
  color: $popover-ios-text-color;
  background: $popover-ios-background;
}


// Popover Arrow
// -----------------------------------------

.popover-ios .popover-arrow {
  position: absolute;
  display: block;

  overflow: hidden;

  width: 20px;
  height: 10px;
}

.popover-ios .popover-arrow::after {
  position: absolute;

  top: 3px;
  left: 3px;

  z-index: $z-index-overlay-wrapper;

  width: 14px;
  height: 14px;

  border-radius: 3px;
  background-color: $popover-ios-arrow-background;
  content: "";
  transform: rotate(45deg);
}

.popover-ios.popover-bottom .popover-arrow {
  top: auto;
  bottom: -10px;
}

.popover-ios.popover-bottom .popover-arrow::after {
  top: -6px;
}
